#!/usr/bin/python
"""
    File:       static.py
    Brief:      shared static variables
    Author:     Xu Qiang
    Version:    1.0
    Date:      2017 - 4 - 18
"""


import os
import sys


WebTestDir = os.getenv( "ChinacQA_WEB_Project" )

if WebTestDir == None:
    WebTestDir = "..\\.."

# WebTestDir = "C:\\webAutomation\\Client\\SourceCode\\webautomation"
WebTestDir = "D:\\webAutomation"
configurePath = WebTestDir + "\\config\\"
outputPath = WebTestDir + "\\output\\"
TAPoutputPath = WebTestDir + "\\output\\tapResult\\"
PICoutputPath = WebTestDir + "\\output\\picture\\"
xmlpath=configurePath+"NeoCU.testproject-deep.xml"

if not os.access( outputPath, os.R_OK ):
    os.mkdir( outputPath )


OOPConFile = configurePath + "Automation.xml"


logFile = outputPath + "QA.log"
 
logIFile = logFile + "I"
logDFile = logFile + "D"
logEFile = logFile + "E"
logWFile = logFile + "W"

from Configure import iniManager, xmlManager
installEnvConf = iniManager( configurePath + "installEnvironment.ini", readOnly = True, autoSave = False )
testEnvtConf = iniManager( configurePath + "testEnvironment.ini", readOnly = True, autoSave = False )
# OOPConf = xmlManager( OOPConFile )
if testEnvtConf.LogFileName != None:
    logFile = outputPath + testEnvtConf.LogFileName
    
    
